package com.hyh.spring.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @BelongsPackage: com.hyh.spring.dao
 * @ClassName AccountDao
 * @Author: hyhWTX
 * @CreateTime: 2023-06-06  12:24
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
@Mapper
public interface AccountDao {

    /**
     * 扣减账户余额
     */
    void decrease(@Param("userId") Long userId, @Param("money") BigDecimal money);
}
